<?php
/*
  $Id: wishlist_details.php, Alex Ponomaryov, 2.11.2004

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2002 osCommerce

  Released under the GNU General Public License
*/

?>
<!-- order_details -->
<?php
//print "<pre>"; print_r($products); print "</pre>";
  echo '<tr>';
  $colspan = 3;

  echo '<td class="tableHeading" width="75%">' . TABLE_HEADING_PRODUCTS . '</td>';
  echo '<td align="right" class="tableHeading">' . TABLE_HEADING_TOTAL . '</td>';
  echo '<td align="right" width="20%" class="tableHeading">' . TABLE_HEADING_ACTION . '</td>';
  echo '</tr>';
  echo '<tr>';
  echo '<td colspan="' . $colspan . '">' . tep_draw_separator() . '</td>';
  echo '</tr>';

  $psize = sizeof($products);
  for ($i=0; $i<$psize; $i++) {
  echo '  <tr>' . "\n";
  echo '    <td valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id'], 'NONSSL') . '"><b>' . $products[$i]['name'] . '</b></a>';

  echo '    </td>' . "\n";
  echo '    <td align="right" valign="top" class="main"><b>' . $currencies->display_price($products[$i]['price'], $products[$i]['tax'], $products[$i]['quantity']) . '</b>' . "\n";

  echo '    </td>' . "\n";
  ?> <td valign="top" class="main"><a href="<?php echo tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=cust_order&pid=' . $products[$i]['id'], 'NONSSL'); ?>"><?php echo BOX_TEXT_MOVE_TO_CART; ?></a>&nbsp;<br><a href="<?php echo tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=remove_wishlist&pid=' . $products[$i]['id'], 'NONSSL'); ?>"><?php echo BOX_TEXT_DELETE; ?></a><br>
  <?

  echo '    </td>' . "\n";
  echo '  </tr>' . "\n";
}
?>
<!-- order_details_eof -->
